#include <iostream>
using namespace std;

template<class T1,class T2>
T1 add(T1 x,T2 y){
	cout << sizeof(T1) << "," << sizeof(T2) << "\t";
	return x + y;
}

int main(){
	cout << add(584,520) << endl;
	cout << add(584.13,520.14) << endl;
	cout << add('J',2) << endl;
	
	return 0;
}
